package com.gcxy.dto.evaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;

/**
 * @ClassName AddEvaluateDTO
 * @Author qinlun
 * @Date 2024/8/1 16:06
 * @Describe
 **/
@Data
@ApiModel(value = "UpdateEvaluateDTO", description = "修改评价表对象")
public class UpdateEvaluateDTO {

    @ApiModelProperty("评价记录表id")
    private Integer id;

    @ApiModelProperty("任务完成情况分数")
    @Max(value = 50, message = "任务完成情况分数不能大于60")
    @Min(value = 0, message = "任务完成情况分数不能小于0")
    private Integer taskCompletionScore;

    @ApiModelProperty("代码/文案质量分数")
    @Max(value = 30, message = "代码/文案质量分数不能大于30")
    @Min(value = 0, message = "代码/文案质量分数不能小于0")
    private Integer codeQualityScore;

    @ApiModelProperty("主动性与创新意识分数")
    @Max(value = 10, message = "主动性与创新意识分数不能大于10")
    @Min(value = 0, message = "主动性与创新意识分数不能小于0")
    private Integer initiativeScore;

    @ApiModelProperty("工作态度分数")
    @Max(value = 10, message = "工作态度分数不能大于10")
    @Min(value = 0, message = "工作态度分数不能小于0")
    private Integer workingAttitudeScore;

//    @ApiModelProperty("总分")
//    private Integer totalScore;

    @ApiModelProperty("评价说明")
    private String evaluationDescription;

}
